package com.hyt.it.ogt.kq.service.gov.feign.customerthird;

import com.hyt.common.apiInfor.ApiResponse;
import com.hyt.it.ogt.kq.service.gov.feign.customerthird.model.*;
import com.hyt.loginfo.config.OAuth2FeignRequestConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "it-ogt-customerthird-interface", fallback = CustomerthirdClientHystrix.class, configuration = OAuth2FeignRequestConfig.class)
public interface CustomerthirdClient {

    @PostMapping("/zjw/saveExam")
    ApiResponse<Object> saveExam(@RequestBody List<ZjwExamDTO> zjwExamList);

    @PostMapping("/zjw/saveKwap")
    ApiResponse<Object> saveKwap(@RequestBody List<ZjwKwapDTO> zjwKwapList);

    @PostMapping("/zjw/saveExamStudent")
    ApiResponse<Object> saveExamStudent(@RequestBody ExamStudentDTO examStudent);
}
